import request from '/@/utils/request';

export function queryTree() {
    return request({
        url: '/api/entService/info/query/tree',
        method: 'get',
    });
}

export function querySvInfoEntity(keyValue: string) {
    return request({
        url: '/api/entService/info/query/' + keyValue,
        method: 'get',
    });
}

export function queryPackageSvInfoList(params?: object) {
    return request({
        url: '/api/entService/info/packageId/query/list',
        method: 'get',
        params
    });
}

export function saveSvInfo(params: object) {
    return request({
        url: '/api/entService/info/save/',
        method: 'post',
        data: params,
    });
}

export function removeSvInfo(id: string) {
    return request({
        url: '/api/entService/info/remove/' + id,
        method: 'delete',
    });
}